// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /aMessage/add */
export async function addAMessage(body: API.AmessageAddRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong>('/aMessage/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /aMessage/delete */
export async function deleteAMessage(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/aMessage/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /aMessage/list/vo/page */
export async function listAMessageVoByPage(
  body: API.AmessageQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAmessageVO>('/aMessage/list/vo/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /aMessage/update */
export async function updateAMessage(
  body: API.AmessageUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong>('/aMessage/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
